package com.demo.user.application.assembler;

import com.demo.user.config.CentralConfig;
import com.demo.user.dto.UserDetailDto;
import com.demo.user.dto.UserDto;
import com.demo.user.dto.UserPageDto;
import com.demo.user.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(config = CentralConfig.class)
public abstract class UserConverter {
    public abstract UserDetailDto toDto(User user);

    public abstract User fromDto(UserDto requestDto);

    public abstract List<UserPageDto> toDtos(List<User> list);

    public abstract UserPageDto toPageDto(User source);

}
